-
Notifications
You must be signed in to change notification settings - Fork 734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SYCL] Use pair of native::sin/cos for sincos under __FAST_MATH__ #10481
Conversation
Performance measurements have been done in https://github.com/intel/llvm/actions/runs/5790366639/job/15693313789. |
@@ -734,8 +734,8 @@ std::enable_if_t<__FAST_MATH_GENFLOAT(T), T> sin(T x) __NOEXC { | |||
|
|||
// svgenfloat sincos (svgenfloat x, genfloatptr cosval) | |||
template <typename T, typename T2> | |||
std::enable_if_t< | |||
detail::is_svgenfloat<T>::value && detail::is_genfloatptr<T2>::value, T> | |||
std::enable_if_t<__FAST_MATH_GENFLOAT(T) && detail::is_genfloatptr<T2>::value, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure where __FAST_MATH_WITH_GENFLOAT
comes from or what it is, but is there any chance that these two enable_if might both be true at the same time and then result in an ambiguous call? Do you need to ensure they are mutuallly exclusive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tried to do it exactly the same as done for sin/cos/...
This PR could affect #10198 |
No description provided.